﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="LIMITESDataSet" targetNamespace="http://tempuri.org/LIMITESDataSet.xsd" xmlns:mstns="http://tempuri.org/LIMITESDataSet.xsd" xmlns="http://tempuri.org/LIMITESDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="GDBConnectionString1" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="GDBConnectionString1 (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.GERENCIAMENTO___VITORIA.My.MySettings.GlobalReference.Default.GDBConnectionString1" Provider="Microsoft.SqlServerCe.Client.3.5" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="LIMITESTableAdapter" GeneratorDataComponentClassName="LIMITESTableAdapter" Name="LIMITES" UserDataComponentName="LIMITESTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="GDBConnectionString1 (MySettings)" DbObjectName="LIMITES" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [LIMITES] WHERE (([ID] = @p1))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [LIMITES] ([CEDENTE], [LIMITECEDENTE], [LIMITEPF], [LIMITEPJ], [TAXA], [CONTATO], [CONFIRMACAO], [OBS], [VPROMISS]) VALUES (@p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CEDENTE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="LIMITECEDENTE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="LIMITEPF" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="LIMITEPJ" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="Decimal" Scale="0" Size="0" SourceColumn="TAXA" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p6" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CONTATO" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p7" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CONFIRMACAO" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p8" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="OBS" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p9" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="VPROMISS" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT [ID], [CEDENTE], [LIMITECEDENTE], [LIMITEPF], [LIMITEPJ], [TAXA], [CONTATO], [CONFIRMACAO], [OBS], [VPROMISS] FROM [LIMITES]
ORDER BY CEDENTE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [LIMITES] SET [CEDENTE] = @p1, [LIMITECEDENTE] = @p2, [LIMITEPF] = @p3, [LIMITEPJ] = @p4, [TAXA] = @p5, [CONTATO] = @p6, [CONFIRMACAO] = @p7, [OBS] = @p8, [VPROMISS] = @p9 WHERE (([ID] = @p10))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CEDENTE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="LIMITECEDENTE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="LIMITEPF" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="LIMITEPJ" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="Decimal" Scale="0" Size="0" SourceColumn="TAXA" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p6" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CONTATO" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p7" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CONFIRMACAO" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p8" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="OBS" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p9" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="VPROMISS" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p10" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="CEDENTE" DataSetColumn="CEDENTE" />
              <Mapping SourceColumn="LIMITECEDENTE" DataSetColumn="LIMITECEDENTE" />
              <Mapping SourceColumn="LIMITEPF" DataSetColumn="LIMITEPF" />
              <Mapping SourceColumn="LIMITEPJ" DataSetColumn="LIMITEPJ" />
              <Mapping SourceColumn="TAXA" DataSetColumn="TAXA" />
              <Mapping SourceColumn="CONTATO" DataSetColumn="CONTATO" />
              <Mapping SourceColumn="CONFIRMACAO" DataSetColumn="CONFIRMACAO" />
              <Mapping SourceColumn="OBS" DataSetColumn="OBS" />
              <Mapping SourceColumn="VPROMISS" DataSetColumn="VPROMISS" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="GDBConnectionString1 (MySettings)" DbObjectName="LIMITES" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByCEDENTE" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillByCEDENTE" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillByCEDENTE">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CEDENTE, CONFIRMACAO, CONTATO, ID, LIMITECEDENTE, LIMITEPF, LIMITEPJ, OBS, TAXA, VPROMISS FROM LIMITES WHERE (CEDENTE LIKE '%' + @CEDENTE + '%') ORDER BY CEDENTE</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="CEDENTE" ColumnName="CEDENTE" DataSourceName="LIMITES" DataTypeServer="nvarchar(300)" DbType="String" Direction="Input" ParameterName="@CEDENTE" Precision="0" ProviderType="NVarChar" Scale="0" Size="300" SourceColumn="CEDENTE" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="LIMITESDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="LIMITESDataSet" msprop:Generator_UserDSName="LIMITESDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="LIMITES" msprop:Generator_TableClassName="LIMITESDataTable" msprop:Generator_TableVarName="tableLIMITES" msprop:Generator_RowChangedName="LIMITESRowChanged" msprop:Generator_TablePropName="LIMITES" msprop:Generator_RowDeletingName="LIMITESRowDeleting" msprop:Generator_RowChangingName="LIMITESRowChanging" msprop:Generator_RowEvHandlerName="LIMITESRowChangeEventHandler" msprop:Generator_RowDeletedName="LIMITESRowDeleted" msprop:Generator_RowClassName="LIMITESRow" msprop:Generator_UserTableName="LIMITES" msprop:Generator_RowEvArgName="LIMITESRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="CEDENTE" msprop:Generator_ColumnVarNameInTable="columnCEDENTE" msprop:Generator_ColumnPropNameInRow="CEDENTE" msprop:Generator_ColumnPropNameInTable="CEDENTEColumn" msprop:Generator_UserColumnName="CEDENTE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="300" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LIMITECEDENTE" msprop:Generator_ColumnVarNameInTable="columnLIMITECEDENTE" msprop:Generator_ColumnPropNameInRow="LIMITECEDENTE" msprop:Generator_ColumnPropNameInTable="LIMITECEDENTEColumn" msprop:Generator_UserColumnName="LIMITECEDENTE" type="xs:decimal" minOccurs="0" />
              <xs:element name="LIMITEPF" msprop:Generator_ColumnVarNameInTable="columnLIMITEPF" msprop:Generator_ColumnPropNameInRow="LIMITEPF" msprop:Generator_ColumnPropNameInTable="LIMITEPFColumn" msprop:Generator_UserColumnName="LIMITEPF" type="xs:decimal" minOccurs="0" />
              <xs:element name="LIMITEPJ" msprop:Generator_ColumnVarNameInTable="columnLIMITEPJ" msprop:Generator_ColumnPropNameInRow="LIMITEPJ" msprop:Generator_ColumnPropNameInTable="LIMITEPJColumn" msprop:Generator_UserColumnName="LIMITEPJ" type="xs:decimal" minOccurs="0" />
              <xs:element name="TAXA" msprop:Generator_ColumnVarNameInTable="columnTAXA" msprop:Generator_ColumnPropNameInRow="TAXA" msprop:Generator_ColumnPropNameInTable="TAXAColumn" msprop:Generator_UserColumnName="TAXA" type="xs:decimal" minOccurs="0" />
              <xs:element name="CONTATO" msprop:Generator_ColumnVarNameInTable="columnCONTATO" msprop:Generator_ColumnPropNameInRow="CONTATO" msprop:Generator_ColumnPropNameInTable="CONTATOColumn" msprop:Generator_UserColumnName="CONTATO" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="300" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CONFIRMACAO" msprop:Generator_ColumnVarNameInTable="columnCONFIRMACAO" msprop:Generator_ColumnPropNameInRow="CONFIRMACAO" msprop:Generator_ColumnPropNameInTable="CONFIRMACAOColumn" msprop:Generator_UserColumnName="CONFIRMACAO" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OBS" msprop:Generator_ColumnVarNameInTable="columnOBS" msprop:Generator_ColumnPropNameInRow="OBS" msprop:Generator_ColumnPropNameInTable="OBSColumn" msprop:Generator_UserColumnName="OBS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="VPROMISS" msprop:Generator_ColumnVarNameInTable="columnVPROMISS" msprop:Generator_ColumnPropNameInRow="VPROMISS" msprop:Generator_ColumnPropNameInTable="VPROMISSColumn" msprop:Generator_UserColumnName="VPROMISS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="300" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:LIMITES" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>